home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / cad / lasi512b.zip / TUTOR.ZIP / TUTOR.LHI < prev    next >
Text File  |  1996-04-04  |  19KB  |  438 lines

  1. ≡≡
  2. Starting the Tutorial
  3.  
  4.  Starting the Tutotial
  5.  
  6.  
  7.   The layout of a small IC is used to familiarize a new user with LASI. The
  8.   circuit is a simple bipolar opamp, but not necessarily a good one. It is
  9.   mainly designed to show drawing techniques.
  10.  
  11.   When you installed the drawing files from a ZIP file, you create a
  12.   subdirectory on your hard disk called \LASI5\TUTOR. This is the drawing
  13.   directory for the tutorial IC.
  14.  
  15.   The tutorial files contain a small batch file (TUTOR.BAT) that
  16.   reconstructs the drawing and then runs the main LASI drawing program.
  17.  
  18.   The batch uses the TLCIN.EXE program which converts the drawing from
  19.   "TLC" files, which are ASCII sequential files, into "BP5" and "CL5"
  20.   files, which are faster binary files that LASI actually uses in the
  21.   drawing. The batch then runs LASI and puts you immediately into what is
  22.   called "Cell Mode" with the drawing of a small IC. The drawing is a
  23.   "cell" named OPAMP.
  24.  
  25.   When in the drawing, test out the LASI main help system by pressing F1.
  26.   This calls the help program LHI.EXE with the main LASI help text file.
  27.   LHI is an information reader that can be called at any time while running
  28.   LASI to explain any procedures or commands. Exit LHI by clicking "Back",
  29.   "Quit" or by pressing ESC. You may also place the mouse cursor on a
  30.   command button and press F1. This calls help for that command directly.
  31.  
  32.   When in the main help system, read a few of the topics. If you are new to
  33.   LASI, don't expect to learn the details immediately. There are many
  34.   subtleties in LASI.
  35.  
  36.   Return to this tutorial any time by pressing F2 when a drawing is
  37.   displayed. The tutorial drawing is arranged so that pressing F2 calls the
  38.   command: "DOS, \LASI5\LHI \LASI5\TUTOR\TUTOR.HLP", which starts LHI again
  39.   from a drawing context with the tutorial text file. Note that "\LASI5" is
  40.   added as a path because the DOS PATH may not contain "\LASI5" just yet.
  41.  
  42.   In fact, typing the command: "\LASI5\LHI \LASI5\TUTOR\TUTOR.HLP" will run
  43.   this tutorial from DOS in any directory on the hard disk where LASI is
  44.   installed. Read the topic "Help on Help" under General Information in the
  45.   main LASI help text for more information on LHI command line arguments.
  46.  
  47.  
  48.   If you want to start the tutorial drawing from DOS without reinstalling
  49.   the drawing, do the following:
  50.  
  51.   1. Be sure that the DOS PATH contains the term "disk:\LASI5", where
  52.      "disk" is the name of the hard drive where you installed LASI.
  53.  
  54.   2. Make the \LASI5\TUTOR directory the default directory.
  55.  
  56.   3. If you want to reconstruct completely, run the TUTOR.BAT batch file
  57.      again by typing "tutor".
  58.  
  59.   4. If the drawing is OK and you want to run LASI immediately, just type
  60.      "lasi" or "lasi" followed by the name of a cell, such as "npn1" to go
  61.      directly to Cell Mode, as the batch file does.
  62.  
  63.   5. When in a cell drawing (Cell Mode), press F2 for this tutorial.
  64.  
  65. Basic Transistor Cells
  66.  
  67.  Introduction
  68.  
  69.   The opamp is made from bipolar transistors based on a simple bipolar IC
  70.   process. There are only 8 masking layers used, which are in the usual
  71.   terminology:
  72.  
  73.         1  N-type Buried Island
  74.         2  P-type Isolation
  75.         3  N-type Sinker
  76.         4  P-type Base
  77.         5  P-type Resistor
  78.         6  N-type Emitter
  79.         7  Contact
  80.         8  Metallization
  81.  
  82.   The schematic is on layer 32.
  83.  
  84.   Layers 60-63 contain text that is to be used by the LASICKT.EXE program
  85.   which constructs SPICE code from the layout and schematic. To learn more
  86.   about this type "LHI \LASI5\LASICKT.HLP" at the DOS command line, or run
  87.   LASICKT and press F1.
  88.  
  89.   There are different types of NPN and PNP transistors, some resistors and
  90.   miscellaneous bits and pieces. These are all made as rank 1 cells.
  91.  
  92.  Going to a Cell
  93.  
  94.   1. If you are not there already, enter Cell Mode with the NPN1 transistor
  95.      by clicking your LEFT mouse button on the LIST command and then click
  96.      the LEFT mouse button on the name "NPN1" in the listing. The cell
  97.      should appear.
  98.  
  99.     The cell is made from "basic objects": boxes, polygons and text.
  100.  
  101.     If the transistor does not show completely in the display window click
  102.     the FIT command button with the LEFT mouse button.
  103.  
  104.   2. Use the commands ZOOM, XPND and the pan arrows to examine the cell
  105.      more closely.
  106.  
  107.   3. There are two menus of commands that can be flipped by clicking the
  108.      RIGHT mouse button. The commands are always selected by clicking the
  109.      LEFT mouse button on a menu button. The menu button "pushes" as you
  110.      run the cursor over it, and clicking the mouse activates it. The LEFT
  111.      mouse button is always used to make cursor points or windows to input
  112.      graphical information. Flip the menus to see the different commands,
  113.      and if you are curious, place the mouse cursor on a button and press
  114.      F1. You should jump to the help information for that command.
  115.  
  116.  The Grid Systems
  117.  
  118.   When you work with LASI you will discover that your mouse cursor jumps
  119.   between two grid systems: the unit grid and the working grid. This may
  120.   seem confusing, but its purpose is to control the placement of drawing
  121.   objects to certain discrete positions. As we know, IC layouts are not
  122.   really drawings, but are precisely placed items.
  123.  
  124.   You use the SET command to program working grid sizes, and then click the
  125.   WGRD command to step through them. The number and size is up to you. This
  126.   tutorial is set up for 3 convenient sizes of 1um, 5um and 25um. The
  127.   working grid is indicated at the bottom of the display.
  128.  
  129.   The DGRD and GRID commands control a grid of white dots on the screen.
  130.   DGRD steps through a set of dot spacings, and GRID turns the dots on and
  131.   off. The dot grid spacings are also programmed by the SET command. The
  132.   dot grid is a drawing aid and has no control over object placement.
  133.  
  134.  
  135.   Hint: Pressing the A or ALT keys flips the mouse cursor between working
  136.     and unit grids.
  137.  
  138.  The Layer Table
  139.  
  140.   The tutorial has been setup to use a new feature of LASI 5, a Layer
  141.   Table. The table is a list of layers by names and numbers (set in the
  142.   FORM.DBD file). With certain commands, the table appears as a vertical
  143.   row of buttons that replaces the command menu. When the table appears,
  144.   click the buttons with the LEFT mouse button, and then click the LEFT
  145.   mouse button OFF the menu or press ESC when you are finished.
  146.  
  147.   LASI 5 also works with layer numbers, just as did previous versions of
  148.   LASI. To toggle between the layer table and numbered layers, press
  149.   CTRL-ENTER.
  150.  
  151.  Getting Objects
  152.  
  153.   1. You will find that the transistor is mostly drawn with box objects.
  154.      First use the GET and FGET commands by making a cursor window that
  155.      crosses a box side. Notice that the command and the points are
  156.      indicated at the bottom of the screen and that the cursor turns into a
  157.      dotted rectangle. When you use GET, a side of the box turns bright
  158.      white. This is called "active". Using FGET (full get) makes the entire
  159.      box object active.
  160.  
  161.   2. Click the INFO or SHOW commands if you want information on an object.
  162.      SHOW is like INFO except that it gives more information on a new
  163.      screen. To exit a SHOW screen press ESC.
  164.  
  165.   3. The base of the transistor is made from a poly(gon) object. To "get" a
  166.      poly object think of it as a series of vertices and make a cursor
  167.      rectangle around one or more vertices. A diamond symbol will appear at
  168.      an active vertex, and a segment line will turn bright white if
  169.      adjacent vertices are active. GET makes a single vertex active. FGET
  170.      makes an entire poly or path active. Use the INFO and SHOW commands
  171.      again on the poly.
  172.  
  173.   4. Try the PUT and FPUT commands. The "put" commands are the inverse of
  174.      any "get" commands.
  175.  
  176.  
  177.   Hint:  You can start a command over again by reclicking the command or by
  178.     pressing ESC.
  179.  
  180.  Moving Objects
  181.  
  182.   1. Now try the MOV command. First make one or more box sides active with
  183.      GET and then click the MOV command. Notice that the mouse cursor now
  184.      jumps in discrete working grid distances and requires two input
  185.      points. Notice also that the cursor turns into a dotted vector to
  186.      indicate the movement.
  187.  
  188.   2. Click the APUT (all put) command to make boxes inactive again.
  189.  
  190.   3. Make a vertex active on the base poly. Try MOV again and notice that
  191.      vertices move discretely in any direction.
  192.  
  193.   4. Click APUT again to make all objects inactive.
  194.  
  195.  Adding Objects
  196.  
  197.   1. You can now try the ADD command. To do so, first set the type of
  198.      object using the OBJ command. You only have a choice of "b" (box) or
  199.      "p" (path) in this case. (Later cellnames will be OK.)  Make your
  200.      boxes by clicking at diagonally opposite corners. The boxes will be on
  201.      the layer indicated at the bottom of the screen. Notice that boxes
  202.      will be "snapped" into the working grid indicated at the bottom of the
  203.      screen.
  204.  
  205.   2. Use the LAYR and CLYR command to set and change the layer of boxes.
  206.      These commans call the Layer Table if it is turned on. For CLYR to
  207.      work a box must have all four sides active.
  208.  
  209.     You can use boxes for parts of a transistor (isolation, contacts etc.)
  210.     that would normally be rectangular.
  211.  
  212.   3. Make polys by setting the object to "p" and clicking the cursor at
  213.      different points to add vertices. You will produce a sequence of line
  214.      segments with the last vertex active and marked by an "x". By adding
  215.      the last vertex at the same point as the first vertex, you produce a
  216.      closed polygon. Notice like boxes that the vertices are set at working
  217.      grid points.
  218.  
  219.   4. Try the WDTH and CWSZ commands to set and change a poly's width.
  220.      Setting width greater than zero makes a poly into a "path".
  221.  
  222.     In general, the term "path" refers to both poly and paths; a poly just
  223.     has zero width.
  224.  
  225.   5. There are special commands ARC, VSTP, PREV, PBEG, PEND, VSTP, CUT and
  226.      JOIN that act on paths only. You can try these if you wish after you
  227.      have determined their function by consulting LHI (Put the cursor on
  228.      the command and press F1).
  229.  
  230.     You would use closed polygons to make non-rectangular areas in a
  231.     transistor. (In this case, a base area with clipped corners, or PNP
  232.     emitters and collectors as you will find in the PNP1 cell)
  233.  
  234.   6. Now add some text. Choose the TEXT command and click a reference
  235.      point, and then type in some characters terminated by ENTER. Flip the
  236.      menu and notice that the LAYR and WDTH commands are replaced by the
  237.      TLYR and TSIZ commands. Text is a form of path, and the TLYR, CLYR,
  238.      TSIZ and CWSZ work on it. Size for text is the same as character
  239.      height. Text is like a one vertex path, you "get" text by its
  240.      reference point, which is always in the lower left corner of the
  241.      character string. You can toggle this reference point on and off with
  242.      the T key.
  243.  
  244.  More Commands
  245.  
  246.   1. You should try the CPY, ROT and FLP commands on the boxes, paths and
  247.      text that you have made. These commands save time when symmetries
  248.      occur in a drawing.
  249.  
  250.     CPY will copy individual active vertices, so you can copy pieces of
  251.     paths. Boxes copy only if they have all sides active.
  252.  
  253.     ROT will rotate boxes paths and text. Boxes and text rotate in 90 deg
  254.     increments. Paths rotate to any angle.
  255.  
  256.     FLP flips boxes, paths and text around a horizontal or vertical axis.
  257.  
  258.   2. You can also try the WMOV and QMOV commands. These are composite
  259.      commands that combine the actions of "getting" and "moving". The
  260.      action of these commands on boxes, paths and text is the same except
  261.      that the WMOV command requires that the cursor window completely
  262.      enclose a box side. (WMOV also acts on whole cells as you will see
  263.      later.)
  264.  
  265.   3. There are two commands, VIEW and OPEN that restrict the layers which
  266.      are shown on the display and limit the action of commands on different
  267.      layers. These commands call the Layer Table or accept a series of
  268.      individual layer numbers. Layers that are not VIEWed are never OPENed.
  269.  
  270.   4. There are additional commands like AGET, WGET, STEP, SMSH, PSIZ and
  271.      OVSZ that act on basic objects. These are more rarely used and you
  272.      will find their purpose once you have worked with LASI for a while.
  273.  
  274.  Cleaning Up
  275.  
  276.   1. You should use the DEL command to delete all of the boxes that you
  277.      have added yourself. To delete a box you must have all sides active.
  278.      Remember that the FGET command "gets" all four sides.
  279.  
  280.   2. Delete all the paths that you have added. When deleting paths you may
  281.      delete vertices individually if they are active, or a complete path if
  282.      all vertices are active. Remember, FGET will make all vertices of a
  283.      path active if a single vertex is made active.
  284.  
  285.   3. Delete any text that you may have added by first making it active.
  286.  
  287.   Hint 1: If you have made a mess of the transistor while trying commands,
  288.     instead of trying to delete and repair, use the UNDO command. This will
  289.     restore the original version of the cell.
  290.  
  291.   Hint 2: If you have made a complete disaster of the cell, go back to DOS
  292.     and run TUTOR.BAT and replace the cell files completely.
  293.  
  294.   The above hints are not to be taken as cynical. They demonstrate that
  295.   LASI has backups in case you do make errors.
  296.  
  297.   To exit LASI from Cell Mode, first click SYS and then click QUIT.
  298.  
  299.  More Cells
  300.  
  301.   Use the LIST command to go to some of the other cells and see how they
  302.   are made. Remember that the cells are intended to demonstrate drawing,
  303.   not necessarily good device design.
  304.  
  305. The Main Cell Layout
  306.  
  307.  Going to the Main Cell
  308.  
  309.   1. Click the LIST command and choose OPAMP with the LEFT mouse button.
  310.      The overall IC layout should appear. Notice that it is rank 2 and is
  311.      made from the rank 1 cells along with boxes, paths and text. The
  312.      transistors are set in convenient locations and are interconnected
  313.      using paths on the metallization layer.
  314.  
  315.     This is basically the way that you would layout an IC, although the
  316.     techniques vary with the individual.
  317.  
  318.   2. Use the FIT, ZOOM, XPND and direction commands to examine the layout.
  319.  
  320.  
  321.   The opamp layout is a very simple example. More elaborate ICs may be
  322.   constructed by using subsections (like our opamp), and then assembling
  323.   these subsections into higher rank cells - and so on. This is how LASI
  324.   can handle large if not huge ICs.
  325.  
  326.  Cell Commands
  327.  
  328.   1. Try some of the commands that act on cells only. Select the CGET
  329.      command and rapidly double click the LEFT mouse button on a single
  330.      transistor cell. The cell should redraw in bright white. This is now
  331.      an active cell.
  332.  
  333.   2. Use the MOV, ROT and FLP commands on the cell. Cells rotate in 90 deg
  334.      increments.
  335.  
  336.   3. Make the cell inactive again by clicking the APUT button.
  337.  
  338.   4. Try the OUTL command by rapidly double clicking the mouse on a cell.
  339.      The cell should be replaced by an outline. Now try the FULL command on
  340.      the cell by making a cursor window completely around the cell.
  341.      Outlining allows you to draw cells as a simple rectangle outline only.
  342.      Putting cells in outline can greatly improve drawing speed if you have
  343.      a large complex layout and a slow computer.
  344.  
  345.   5. Also try the CMOV command which moves cells directly. Rapidly double
  346.      click on the cell and then click two points to move the cell. This too
  347.      is a time saver.
  348.  
  349.   6. There are commands that work on both cells, boxes, paths and text such
  350.      as AGET, WGET and WMOV. These do more things at a time, but are also
  351.      more difficult to use. Try these commands. You will find that they are
  352.      useful for operations like moving a whole section of a drawing.
  353.  
  354.  
  355.   Hint: By quickly double clicking the LEFT mouse button while making a
  356.     cursor window in cell commands, you change the sense of the "get". The
  357.     commands then act on cells if there is any overlap of the cell in the
  358.     cursor window at all. If you wait a moment between clicks, the "get"
  359.     window must completely surround a cell.
  360.  
  361.  Adding Cells
  362.  
  363.   Now you can add a cell. To do so:
  364.  
  365.   1. Click the OBJ command button and make the object the name of a cell
  366.      such as NPN1.
  367.  
  368.   2. Select ADD and click the LEFT mouse button in some open location to
  369.      give a reference point. Your cell should appear and you can work with
  370.      it just like any other cell.
  371.  
  372.     Note that the reference point is the 0,0 point in the added cell.
  373.  
  374.  Deleting Cells
  375.  
  376.   When you want to eliminate a cell, simply make the cell active and click
  377.   DEL to remove it. Once a cell is gone, it is gone, but cells are easy to
  378.   put back.
  379.  
  380.   As with lesser objects, you can also use UNDO to restore the original
  381.   drawing, or reload it completely from TLC form.
  382.  
  383. The Schematic
  384.  
  385.  The Schematic
  386.  
  387.   There is a schematic diagram named $OPAMP independently living with the
  388.   IC layout. It is similar to the IC layout except that the cells are
  389.   symbols that are drawn and interconnected using zero width paths or open
  390.   polygons, whichever way you may want to think of them. Different layers
  391.   are used for the schematic and the layout, so that there will be no
  392.   conflict with the layer attributes of color, dashing and filling.
  393.  
  394.   Notice also that in this example schematic cellnames have "$" as their
  395.   first character so you can easily tell a symbol from a device.
  396.  
  397.   There are in effect two main cells, one for the IC, and one for the
  398.   schematic. There actually can be as many different cells on a rank as
  399.   memory capacity will allow.
  400.  
  401.   You may want to use the schematic as a practice for working with open
  402.   polygons. You will find that the techniques are slightly different from
  403.   working with the IC layout.
  404.  
  405. System Mode
  406.  
  407.  System Mode
  408.  
  409.   You do actual drawing in Cell Mode, but you go through System Mode when
  410.   entering and exiting LASI. The commands in System Mode manipulate cells
  411.   as complete entities and perform various organizational tasks.
  412.  
  413.   Put your mouse cursor on the command name and press F1 to find out what
  414.   the commands do.
  415.  
  416.   You can try various commands. Their function is pretty straight forward
  417.   and generally requires little explanation. You should be warned however
  418.   that you can completely change some of the fundamental parameters, such
  419.   as scale or cellnames.
  420.  
  421.   Once you work with LASI for a while this is not so scary.
  422.  
  423. Summary
  424.  
  425.  Summary
  426.  
  427.   You have been introduced to working with LASI. There are many more things
  428.   that you can do using the many commands, and many subtleties in the way
  429.   that the commands work that you will only learn by experience. When help
  430.   is needed press F1. You will soon learn that LASI is really pretty simple
  431.   in the way that it operates.
  432.  
  433.  
  434.   Always exit LASI by going to System Mode, first clicking SYS if you are
  435.   in Cell Mode, and then clicking QUIT. This stores the current cell on the
  436.   hard disk, and updates the drawing basic data files.
  437.  
  438.